package com.wq.store.controller;


import com.wq.store.service.StoreService;
import com.wuyunbin.common.Result;
import com.wuyunbin.merchant.entity.Store;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 店铺表 前端控制器
 * </p>
 *
 * @author wuyunbin
 * @since 2024-11-10
 */
@Slf4j
@RestController
@RequestMapping("/store")
public class StoreController {
    @Resource
    private StoreService storeService;
    @PostMapping()
    public Result<Object> save(@RequestBody Store store){
        this.storeService.save(store);
        return Result.success();
    }


}
